// 充电桩模块
import request from '@/utils/request'
import settings from '@/settings'

// 总概况
export function getStatusStatistics(data) {
  return request({
    url: settings.basicPrefix + '/dytmh/chargingStation/getStatusStatistics',
    method: 'post',
    data
  })
}
// 各地市充电桩统计
export function getChargingPileStatistics(data) {
  return request({
    url: settings.basicPrefix + '/dytmh/chargingStation/getChargingPileStatistics',
    method: 'post',
    data
  })
}
// 充电桩故障数
export function getChargingPileFaultStatisticsChart(data) {
  return request({
    url: settings.basicPrefix + '/dytmh/chargingStation/getChargingPileFaultStatisticsChart',
    method: 'post',
    data
  })
}
// 配变重过载数量统计
export function transformerOverloadGraph(data) {
  return request({
    url: settings.basicPrefix + '/dytmh/powerGridEquipment/transformerOverloadGraph',
    method: 'post',
    data
  })
}
// 充电桩重过载告警
export function fetchDataCards(data) {
  return request({
    url: settings.basicPrefix + '/gf-second/mls/fetchDataCards',
    method: 'post',
    data
  })
}
// 基础统计
export function getAccount(data) {
  return request({
    url: settings.basicPrefix + ' /gf2/elink/getAccount',
    method: 'post',
    data
  })
}

//获取充电桩基础信息
export function getCgStationInfo(data) {
  return request(
    {
      url: settings.basicPrefix + "/gf2/chargingStation/getCgStationInfo",
      method: 'post',
      data
    }
  );
}
//配变负荷情况监测
export function pbEleCurrent(data) {
  return request({
    url: settings.basicPrefix + "/gf2/PbInfo/pbEleCurrent",
    method: 'post',
    data
  });
}
//充电桩日用电量统计
export function getCgYdl(data) {
  return request({
    url: settings.basicPrefix + "/gf2/chargingStation/getCgYdl",
    method: 'post',
    data
  });
}

//充电桩月用电量统计
export function getCgYdlForMonth(data) {
  return request({
    url: settings.basicPrefix + "/gf2/chargingStation/getCgYdlForMonth",
    method: 'post',
    data
  });

}
//负载率、三相负荷不平衡度、功率因数
export function getPbMultiAttribute(data) {
  return request({
    url: settings.basicPrefix + "/gf2/PbInfo/getPbMultiAttribute",
    method: 'post',
    data
  });

}
//充电桩月低电压用户统计
export function getCgLowVoltageUsers(data) {
  return request({
    url: settings.basicPrefix + "/gf2/chargingStation/getCgLowVoltageUsers",
    method: 'post',
    data
  });

}
// 关联台区本月反向重过载统计
export function getGfHeavyOverloadStatisticsByMonth(data) {
  return request({
    url: settings.basicPrefix + "/gf2/GfInfo/getGfHeavyOverloadStatisticsByMonth",
    method: 'post',
    data
  });

}